<#include "custom.include"> <#assign className = table.className>
<#assign idColumn = table.idColumn ?lower_case> <#assign classNameLower
= className?uncap_first> <#assign
classNameAllLower=className?lower_case>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<html>
<head>
</head>
<script type="text/javascript">
</script>
<body>
<hih:form bean="${classNameLower}" scope="request">
	<form action="/${classNameLower}Controller.do?method=save" method="post" name="${classNameLower}Form">
		<c:if test="${"$"}{${classNameLower}!=null}">
			<input type="hidden" name="${idColumn}" value="${"$"}{${classNameLower}.${idColumn}}"/>
		</c:if>
		<div>
			<table class="FormView" border="0" cellspacing="1" cellpadding="0">
				<col class="Label" />
				<col class="Data" />
				<col class="Label" />
				<col class="Data" />
				<#list table.columns as column>
				<tr>
					<#if column._pri="N"> 
					<#if column._control="text"&&column._fill="Y">
					<td><fmt:message key="${classNameAllLower}.${column.columnNameLower}"/></td>
					<td><input type="text" name="${column.columnNameLower}" class="text"  width="120px"/><font color="red">**</font></td> 
					<#elseif column._control="text"&&column._fill="N">
					<td><fmt:message key="${classNameAllLower}.${column.columnNameLower}"/></td>
					<td><input type="text" name="${column.columnNameLower}" class="text" width="120px"/></td> 
					<#elseif column._control="textarea"&&column._fill="Y">
					<td><fmt:message key="${classNameAllLower}.${column.columnNameLower}"/></td>
					<td><textarea name="${column.columnNameLower}" class="textarea" cols="30" rows="4"></textarea><font color="red">**</font></td> 
					<#elseif column._control="textarea"&&column._fill="N">
					<td><fmt:message key="${classNameAllLower}.${column.columnNameLower}"/></td>
					<td><textarea name="${column.columnNameLower}" class="textarea" cols="30" rows="4" /></td> 
					<#elseif column._control="select"&&column._fill="Y">
					<td><fmt:message key="${classNameAllLower}.${column.columnNameLower}"/></td>
					<td><select name="${column.columnNameLower}" class="select">
						<option collection="list" labelname="optionLabel" name="optionValue" /> 
						</select><font color="red">**</font>
					</td> 
					<#elseif column._control="select"&&column._fill="N">
					<td><fmt:message key="${classNameAllLower}.${column.columnNameLower}"/></td>
					<td><select name="${column.columnNameLower}" class="select">
						<option collection="list" labelname="optionLabel" name="optionValue" /> 
						</select>
					</td> 
					<#elseif column._control="radio">
					<td><fmt:message key="${classNameAllLower}.${column.columnNameLower}"/></td>
					<td><input type="radio" name=" ${column.columnNameLower}" /></td>
					<#elseif column._control="checkbox">
					<td><fmt:message key="${classNameAllLower}.${column.columnNameLower}"/></td>
					<td><input type="checkbox" name="${column.columnNameLower}" value="" />
					</td> 
					<#else >
					<break> 
					</#if> 
					</#if> 
				</tr>
				</#list>
			</table>
		</div>
	</form>
</hih:form>
</body>
</html>
